package com.biz.user;

import com.biz.xxljob.annotation.*;
import org.mybatis.spring.annotation.*;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.cache.annotation.*;
import org.springframework.context.annotation.*;

/**
 * @Description
 *   EnableCaching 启用注解缓存 不推荐使用
 * @Author liuxi
 * @Date 2024/4/17
 **/
@SpringBootApplication
@MapperScan(value = "com.biz.*.dao")
@ComponentScan(value = "com.biz")
@EnableCaching
@EnableXxlJob
public class UserApplication {
    
    public static void main(String[] args) {
        // 开启异步日志
        // System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
        SpringApplication.run(UserApplication.class);
    }
}
